export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  selection:true,
  viewBtn: true,
  // selectable: row => {
  //   return row.approvalStatus == '0'
  // },
  tip:false,
  addBtn: false,
  editBtn: false,
  height: 450,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      hide:true,
      editDisplay: false,
      viewDisplay: false
    },	  {
      "type": "input",
      "label": "线路编码，不能重复",
      "prop": "lineCode",
      hide:true,
      editDisplay: false,
      viewDisplay: false
    },	  {
      "type": "input",
      "label": "车站编码，不能重复",
      "prop": "stationCode",
      hide:true,
      editDisplay: false,
      viewDisplay: false
    },  {
      "type": "date",
      "label": "开始时间",
      "prop": "startTime",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd',
      search:true,
      rules:[{
        required:true,
        message:"请输入开始时间",
        trigger:"blur"
      }],
      width: 85
    },	  {
      "type": "date",
      "label": "结束时间",
      "prop": "endTime",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd',
      search:true,
      rules:[{
        required:true,
        message:"请输入结束时间",
        trigger:"blur"
      }],
      width: 85
    },
    {
      label: "票种",
      prop: "ticketType",
      search: false,
      width: 140,
      type: "select",
      dicUrl: "/support/swpmticketcardtype/dict/DCP",
      props: {
        label: "mainName",
        value: "mainEnName"
      },
      //cascaderItem: ["ticketName"],
      rules: [
        {
          required: true,
          message: "请选择票种",
          trigger: "blur"
        }
      ],
      cell: true
    },
    //  {
    //   "type": "number",
    //   "label": "发售数量/张 合计",
    //   "prop": "totalNumberSales"
    // },	  {
    //   "type": "number",
    //   "label": "小计金额/元 合计",
    //   "prop": "subtotalTotal",
	  // precision: 2
    // },
    {
      type: "select",
      label: "设备编号",
      prop: "equipmentCode",
      cell: true,
      dicUrl: "/support/swpminternetticketequipmentcode/page",
      props: {
        label: "equipmentCode",
        value: "equipmentCode",
        res: "data.records"
      },
      filterable: true,
      //allowCreate: true,
      search:true,
      rules:[{
        required:true,
        message:"请输入设备编号",
        trigger:"blur"
      }]
    },	  
     {
      "type": "number",
      "label": "发售数量/张",
      "prop": "saleNumber",
      rules:[{
        required:true,
        message:"请输入发售数量",
        trigger:"blur"
      }],
      width: 90
    },	  {
      "type": "number",
      "label": "小计金额",
      "prop": "totalSaleAmount",
	    precision: 2,
      rules:[{
        required:true,
        message:"请输入小计金额",
        trigger:"blur"
      }],
      width: 90
    },		  {
      width: 100,
      "type": "date",
      "label": "收益日期",
      "prop": "revenueDate",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd',
      search:true,
      rules:[{
        required:true,
        message:"请输入收益日期",
        trigger:"blur"
      }]
    },	
    {
      "type": "select",
      "label": "状态",
      "prop": "approvalStatus",
      //dicUrl:'/admin/dict/type/sw_st_hand_work_clean_record_status',
      search:true,
      searchValue: 0,
      editDisplay: false,
      viewDisplay: false,
      dicData: [{
        label: '未提交',
        value: 0
      }, {
        label: '已提交',
        value: 1
      }]
    },	  
    {
      width: 120,
      editDisplay: false,
      viewDisplay: false,
      label: '是否加入报表差错',
      prop: 'isAddReprotError',
      type:'select',
      dicData: [{
        label: '是',
        value: '1'
      },{
        label: '否',
        value: '0'
      }],
    },  {
      "type": "select",
      "label": "报表修改状态",
      "prop": "reportModifyStatus",
      editDisplay: false,
      viewDisplay: false,
      search:true,
      dicData: [{
        label: '修改中',
        value: '1'
      },{
        label: '已完成',
        value: '0'
      }],
      width: 95
    },		  {
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
      span: 24,
      width: 150
    },	  {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      hide:true,
      editDisplay: false,
      viewDisplay: false
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      hide:true,
      editDisplay: false,
      viewDisplay: false
    },	  {
      "type": "input",
      "label": "创建人名称",
      "prop": "creatorName",
      hide:true,
      editDisplay: false,
      viewDisplay: false
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide:true,
      editDisplay: false,
      viewDisplay: false
    },	  {
      "type": "input",
      "label": "数据更新时间",
      "prop": "updateTime",
      hide:true,
      editDisplay: false,
      viewDisplay: false
    },	  {
      "type": "input",
      "label": "删除标志 1：删除 0：未删",
      "prop": "delFlag",
      hide:true,
      editDisplay: false,
      viewDisplay: false
    }  ]
}




export const formOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  submitBtn:false,
  emptyBtn:false,
  labelWidth:130,
  "column": [
	   {
      "type": "number",
      "label": "发售数量(合计)",
      "prop": "totalNumberSales",
      disabled:true,
      display: false
    },	  {
      "type": "number",
      "label": "小计金额(合计)",
      "prop": "subtotalTotal",
      "precision":2,
      disabled:true,
      display: false
    },{
      "type": "date",
      "label": "开始时间",
      "prop": "startTime",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd',
      rules:[{
        required:"true",
        message:"请输入开始时间",
        trigger:"blur"
      }]
    },	  {
      "type": "date",
      "label": "结束时间",
      "prop": "endTime",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd',
      rules:[{
        required:true,
        message:"请输入结束时间",
        trigger:"blur"
      }]
    },		  {
      "type": "date",
      "label": "收益日期",
      "prop": "revenueDate",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd',
      rules:[{
        required:true,
        message:"请输入收益日期",
        trigger:"blur"
      }]
    },	  {
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
      span: 24
    }]
}

export const formOptionView = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  submitBtn:false,
  emptyBtn:false,
  labelWidth:130,
  detail:true,
  "column": [
	   {
      "type": "number",
      "label": "发售数量(合计)",
      "prop": "totalNumberSales"
    },	  {
      "type": "number",
      "label": "小计金额(合计)",
      "prop": "subtotalTotal",
      "precision":2
    },	  {
      "type": "select",
      "label": "状态",
      "prop": "approvalStatus",
      dicUrl:'/admin/dict/type/sw_st_hand_work_clean_record_status',
      search:true,
    },	  {
      "type": "date",
      "label": "开始时间",
      "prop": "startTime",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd'
    },	  {
      "type": "date",
      "label": "结束时间",
      "prop": "endTime",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd'
    },	 ]
}

export const formOptionRecords = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  submitBtn:false,
  emptyBtn:false,
  refreshBtn: false,
  addBtn: false,
  menu: false,
  "column": [{
      "type": "input",
      "label": "线路编码，不能重复",
      "prop": "lineCode",
      hide:true,
    },	  {
      "type": "input",
      "label": "车站编码，不能重复",
      "prop": "stationCode",
      hide:true,
    },   {
      "type": "date",
      "label": "开始时间",
      "prop": "startTime",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd'
    },	  {
      "type": "date",
      "label": "结束时间",
      "prop": "endTime",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd'
    }, {
      "type": "date",
      "label": "收益日期",
      "prop": "revenueDate",
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd'
    },
    {
      label: "票种",
      prop: "ticketType",
      width: 140,
      type: "select",
      dicUrl: "/support/swpmticketcardtype/dict/DCP",
      props: {
        label: "mainName",
        value: "mainEnName"
      },
      rules: [
        {
          required: true,
          message: "请选择票种",
          trigger: "blur"
        }
      ],
      cell: true
    },
    {
      type: "select",
      label: "设备编号",
      prop: "equipmentCode",
      cell: true,
      dicUrl: "/support/swpminternetticketequipmentcode/page",
      props: {
        label: "equipmentCode",
        value: "equipmentCode",
        res: "data.records"
      },
      filterable: true,
      //allowCreate: true
    },
    {
      type: "number",
      label: "发售数量",
      prop: "saleNumber",
      cell: true
    },
    {
      type: "number",
      label: "小计金额",
      prop: "totalSaleAmount",
      precision: 2,
      cell: true
    },
    {
      type: "input",
      label: "部门ID",
      prop: "deptId",
      hide: true
    },
    {
      type: "input",
      label: "创建人ID",
      prop: "creatorId",
      hide: true
    },
    {
      type: "input",
      label: "创建人名称",
      prop: "creatorName",
      hide: true
    },
    {
      type: "input",
      label: "创建时间",
      prop: "createTime",
      hide: true
    },
    {
      type: "input",
      label: "数据更新时间",
      prop: "updateTime",
      hide: true
    },		  {
      "type": "input",
      "label": "备注",
      "prop": "remark"
    },
    {
      type: "input",
      label: "删除标志 1：删除 0：未删",
      prop: "delFlag",
      hide: true
    }
  ]
}
